package com.leo.consumer.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import com.leo.api.service.HelloService;

/**
 * @author chao.li@quvideo.com
 * @date 2018/6/21 16:42
 */
@RestController
public class HelloController {
    @Reference
    private HelloService helloService;

    @GetMapping("/hello")
    public String hello(String name){
        return helloService.say(name);
    }

}
